package com.example.smartphonecontext;

import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;

public class MainActivity extends Activity {
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		Button startBtn = (Button)findViewById(R.id.startBtn);
		RelativeLayout layout = (RelativeLayout)findViewById(R.id.main_act);
		layout.setBackgroundResource(R.drawable.background1);
		startBtn.setBackgroundResource(R.drawable.button2);
		startBtn.setOnClickListener(new  View.OnClickListener(){
			public void onClick(View v){
				

				
				Intent myIntent = new Intent(getApplicationContext(),SensorValue.class);
				startActivity(myIntent);
				
				}
		});
		
		Button start02Btn = (Button) findViewById(R.id.start02Btn);
		start02Btn.setBackgroundResource(R.drawable.button1);
		start02Btn.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				

				Intent myIntent = new Intent(getApplicationContext(),ShoutingActivity.class);
				startActivity(myIntent);
				
				
			}
		});

		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
